package com.we823.cms.repository.service.beetl.tag;


import com.we823.cms.common.web.pageable.PageRequest;

public abstract class AbstractListTag extends AbstractTag {

	protected static String PARAM_LIST_COUNT = "count";
	protected static String PARAM_LEN = "len";
	protected static String PARAM_PAGE = "page";
	
	protected PageRequest pageRequest = null;
	
	protected Integer count = 0;
	
	@Override
	public void render() {

		super.getParams();
		count = getParam(PARAM_LIST_COUNT,0);
		Integer page = getParam(PARAM_PAGE,0);
		
		if(count>0){
			pageRequest = new PageRequest(page, count, sort);
		}
		
		execute();
		this.doBodyRender();

	}

}
